﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StoreWeb.system.purchaseManage
{
    public partial class addpurchaseyyyy : System.Web.UI.Page
    {
        //BLL.Role role = new BLL.Role() ;
        BLL.Customer bll = new BLL.Customer();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bindData(hidwhere.Value);
            }
        }

        void bindData(string where)
        {
            //Repeater1.DataSource = bll.GetList(where);
            //Repeater1.DataBind();
        }
        protected void AspNetPager1_PageChanged(object src, EventArgs e)
        {
            bindData(hidwhere.Value);
        }

        protected void btnserach_Click(object sender, EventArgs e)
        {

            string where = " 1=1 ";
            //if (name.Value != null && !string.IsNullOrEmpty(name.Value))
            //{
            //    where += " and customername like '%" + name.Value + "%'";
            //}
            hidwhere.Value = where;
            bindData(hidwhere.Value);
        }

        
    }
}